package org.bigzero.bao

class ReportItem {
	String tem
	String operator
	String expressionValue
	String title

	static constraints = {
		item(nullable:false)
		operator(nullable:false, inList:['groupBy', '=', '<>', '>', '<'])
		expressionValue(blank:true, nullable:true, maxSize:250)
		title(blank:true, nullable:true, maxSize:250)
	}

	String toString(){
		title ? title : item
	}
}
